<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\utils\String | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.utils.html" title="Summary of application\core\utils"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.core.utils.Api.html">Api</a></li>
				<li><a href="class-application.core.utils.ApiCode.html">ApiCode</a></li>
				<li><a href="class-application.core.utils.Attach.html">Attach</a></li>
				<li><a href="class-application.core.utils.Cache.html">Cache</a></li>
				<li><a href="class-application.core.utils.Cloud.html">Cloud</a></li>
				<li><a href="class-application.core.utils.Convert.html">Convert</a></li>
				<li><a href="class-application.core.utils.Credit.html">Credit</a></li>
				<li><a href="class-application.core.utils.Database.html">Database</a></li>
				<li><a href="class-application.core.utils.DateTime.html">DateTime</a></li>
				<li><a href="class-application.core.utils.Env.html">Env</a></li>
				<li><a href="class-application.core.utils.File.html">File</a></li>
				<li><a href="class-application.core.utils.Ftp.html">Ftp</a></li>
				<li><a href="class-application.core.utils.IBOS.html">IBOS</a></li>
				<li><a href="class-application.core.utils.Image.html">Image</a></li>
				<li><a href="class-application.core.utils.Mail.html">Mail</a></li>
				<li><a href="class-application.core.utils.Module.html">Module</a></li>
				<li><a href="class-application.core.utils.Org.html">Org</a></li>
				<li><a href="class-application.core.utils.Page.html">Page</a></li>
				<li><a href="class-application.core.utils.PHPExcel.html">PHPExcel</a></li>
				<li class="active"><a href="class-application.core.utils.String.html">String</a></li>
				<li><a href="class-application.core.utils.System.html">System</a></li>
				<li><a href="class-application.core.utils.Upgrade.html">Upgrade</a></li>
				<li><a href="class-application.core.utils.Url.html">Url</a></li>
				<li><a href="class-application.core.utils.WebSite.html">WebSite</a></li>
				<li><a href="class-application.core.utils.Xml.html">Xml</a></li>
				<li><a href="class-application.core.utils.XMLParse.html">XMLParse</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class String</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.utils.html">utils</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/utils/String.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="isEmail" id="_isEmail">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isEmail">#</a>
			<code>isEmail( <span>string <var>$email</var></span> )</code>

			<div class="description short">
				<p>检测一个字符串是否email格式</p>
			</div>

			<div class="description detailed hidden">
				<p>检测一个字符串是否email格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$email</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="isMobile" id="_isMobile">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isMobile">#</a>
			<code>isMobile( <span>string <var>$str</var></span> )</code>

			<div class="description short">
				<p>检测一个字符串是否手机格式</p>
			</div>

			<div class="description detailed hidden">
				<p>检测一个字符串是否手机格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="istrpos" id="_istrpos">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_istrpos">#</a>
			<code>istrpos( <span>string <var>$string</var></span>, <span>array <var>$arr</var></span>, <span>boolean <var>$returnValue</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>字符串方式实现 preg_match("/(s1|s2|s3)/", $string, $match)</p>
			</div>

			<div class="description detailed hidden">
				<p>字符串方式实现 preg_match("/(s1|s2|s3)/", $string, $match)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>源字符串</dd>
						<dt><var>$arr</var></dt>
						<dd>要查找的字符串 如array('s1', 's2', 's3')</dd>
						<dt><var>$returnValue</var></dt>
						<dd>是否返回找到的值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="iaddSlashes" id="_iaddSlashes">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_iaddSlashes">#</a>
			<code>iaddSlashes( <span>string <var>$string</var></span>, <span>integer <var>$force</var> = <span class="php-num">1</span> </span> )</code>

			<div class="description short">
				<p>对字符串或者输入进行 addslashes 操作</p>
			</div>

			<div class="description detailed hidden">
				<p>对字符串或者输入进行 addslashes 操作</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd></dd>
						<dt><var>$force</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="authCode" id="_authCode">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_authCode">#</a>
			<code>authCode( <span>string <var>$string</var></span>, <span>string <var>$operation</var> = <span class="php-quote">'DECODE'</span></span>, <span>string <var>$key</var> = <span class="php-quote">''</span></span>, <span>integer <var>$expiry</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>对字符串进行加密和解密</p>
			</div>

			<div class="description detailed hidden">
				<p>对字符串进行加密和解密</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd></dd>
						<dt><var>$operation</var></dt>
						<dd>DECODE 解密 | ENCODE  加密</dd>
						<dt><var>$key</var></dt>
						<dd>当为空的时候,取全局密钥</dd>
						<dt><var>$expiry</var></dt>
						<dd>有效期,单位秒</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="random" id="_random">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_random">#</a>
			<code>random( <span>integer <var>$length</var></span>, <span>integer <var>$numeric</var> = <span class="php-num">0</span> </span> )</code>

			<div class="description short">
				<p>产生随机码</p>
			</div>

			<div class="description detailed hidden">
				<p>产生随机码</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$length</var></dt>
						<dd>要多长</dd>
						<dt><var>$numeric</var></dt>
						<dd>$numberic 数字还是字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>$hash 返回字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="ihtmlSpecialChars" id="_ihtmlSpecialChars">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_ihtmlSpecialChars">#</a>
			<code>ihtmlSpecialChars( <span>mixed <var>$string</var></span>, <span>mixed <var>$flags</var> = <span class="php-keyword1">null</span> </span> )</code>

			<div class="description short">
				<p>HTML转义字符</p>
			</div>

			<div class="description detailed hidden">
				<p>HTML转义字符</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>数组或字符串</dd>
						<dt><var>$flags</var></dt>
						<dd>htmlspecialchars函数的标记</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>返回转义好的字符串
					</div>


					<h4>Link</h4>
					<div class="list">
							<a href="http://www.php.net/manual/zh/function.htmlspecialchars.php">http://www.php.net/manual/zh/function.htmlspecialchars.php</a><br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="cutStr" id="_cutStr">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_cutStr">#</a>
			<code>cutStr( <span>string <var>$string</var></span>, <span>integer <var>$length</var></span>, <span>string <var>$dot</var> = <span class="php-quote">' ...'</span> </span> )</code>

			<div class="description short">
				<p>根据中文裁减字符串</p>
			</div>

			<div class="description detailed hidden">
				<p>根据中文裁减字符串</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd><ul>
<li>字符串</li>
</ul></dd>
						<dt><var>$length</var></dt>
						<dd><ul>
<li>长度</li>
</ul></dd>
						<dt><var>$dot</var></dt>
						<dd>$doc - 缩略后缀 default=' ...'</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>返回带省略号被裁减好的字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="iStrLen" id="_iStrLen">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_iStrLen">#</a>
			<code>iStrLen( <span>string <var>$str</var></span> )</code>

			<div class="description short">
				<p>针对uft-8进行特殊处理的strlen函数 (原名dstrlen)</p>
			</div>

			<div class="description detailed hidden">
				<p>针对uft-8进行特殊处理的strlen函数 (原名dstrlen)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>字符串的长度
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="findIn" id="_findIn">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_findIn">#</a>
			<code>findIn( <span>string <var>$string</var></span>, <span>string <var>$id</var></span> )</code>

			<div class="description short">
				<p>查找是否包含在内,两边都可以是英文逗号相连的字符串 原名(findin)</p>
			</div>

			<div class="description detailed hidden">
				<p>查找是否包含在内,两边都可以是英文逗号相连的字符串 原名(findin)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>目标范围</dd>
						<dt><var>$id</var></dt>
						<dd>所有值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="isIp" id="_isIp">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isIp">#</a>
			<code>isIp( <span>string <var>$ip</var></span> )</code>

			<div class="description short">
				<p>判断给定的参数是否是一个有效的IP地址 原名(isip)</p>
			</div>

			<div class="description detailed hidden">
				<p>判断给定的参数是否是一个有效的IP地址 原名(isip)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ip</var></dt>
						<dd>ip地址字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="strExists" id="_strExists">

			<td class="attributes"><code>
				 public static
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_strExists">#</a>
			<code>strExists( <span>string <var>$string</var></span>, <span>string <var>$find</var></span> )</code>

			<div class="description short">
				<p>判断一个字符串是否在另一个字符串中存在</p>
			</div>

			<div class="description detailed hidden">
				<p>判断一个字符串是否在另一个字符串中存在</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>$string</dd>
						<dt><var>$find</var></dt>
						<dd>$find</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSubIp" id="_getSubIp">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSubIp">#</a>
			<code>getSubIp( <span>string <var>$ip</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>返回一个形如10.0.<em>.</em>这样的IP 原名(get_sub_ip)</p>
			</div>

			<div class="description detailed hidden">
				<p>返回一个形如10.0.<em>.</em>这样的IP 原名(get_sub_ip)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ip</var></dt>
						<dd>ip地址字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="displayIp" id="_displayIp">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_displayIp">#</a>
			<code>displayIp( <span>string <var>$str</var></span> )</code>

			<div class="description short">
				<p>返回显示IP的字符串 原名(ip_show)</p>
			</div>

			<div class="description detailed hidden">
				<p>返回显示IP的字符串 原名(ip_show)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="iImplode" id="_iImplode">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_iImplode">#</a>
			<code>iImplode( <span>array <var>$array</var></span> )</code>

			<div class="description short">
				<p>特别处理数组连接成字符串 带单引号 原名(dimplode)</p>
			</div>

			<div class="description detailed hidden">
				<p>特别处理数组连接成字符串 带单引号 原名(dimplode)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$array</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>


					<h4>Author</h4>
					<div class="list">
							Ring<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="splitParam" id="_splitParam">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_splitParam">#</a>
			<code>splitParam( <span>string <var>$param</var></span> )</code>

			<div class="description short">
				<p>分割参数字符串返回数组。方便url组件创建URL</p>

<pre><span class="php-var">$param</span> = <span class="php-quote">'a=3&amp;b=4'</span>;
        <span class="php-var">$splitParam</span> = String::splitParam(<span class="php-var">$param</span>);</pre>
			</div>

			<div class="description detailed hidden">
				<p>分割参数字符串返回数组。方便url组件创建URL</p>

<pre><span class="php-var">$param</span> = <span class="php-quote">'a=3&amp;b=4'</span>;
        <span class="php-var">$splitParam</span> = String::splitParam(<span class="php-var">$param</span>);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$param</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="splitSql" id="_splitSql">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_splitSql">#</a>
			<code>splitSql( <span>string <var>$sql</var></span> )</code>

			<div class="description short">
				<p>处理sql语句</p>
			</div>

			<div class="description detailed hidden">
				<p>处理sql语句</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$sql</var></dt>
						<dd>原始的sql</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="passwordMask" id="_passwordMask">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_passwordMask">#</a>
			<code>passwordMask( <span>string <var>$password</var></span> )</code>

			<div class="description short">
				<p>把密码字符串转换为可显示的形式</p>

<pre><span class="php-var">$password</span> = <span class="php-quote">'19881014'</span>;
<span class="php-keyword1">echo</span> String::passwordMask(<span class="php-var">$password</span>);
<span class="php-comment">// returns '1********14';</span></pre>
			</div>

			<div class="description detailed hidden">
				<p>把密码字符串转换为可显示的形式</p>

<pre><span class="php-var">$password</span> = <span class="php-quote">'19881014'</span>;
<span class="php-keyword1">echo</span> String::passwordMask(<span class="php-var">$password</span>);
<span class="php-comment">// returns '1********14';</span></pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$password</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="clearLogString" id="_clearLogString">

			<td class="attributes"><code>
				 public static
				mixed
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clearLogString">#</a>
			<code>clearLogString( <span>mixed <var>$str</var></span> )</code>

			<div class="description short">
				<p>过滤日志字符串</p>
			</div>

			<div class="description detailed hidden">
				<p>过滤日志字符串</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTree" id="_getTree">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTree">#</a>
			<code>getTree( <span>array <var>$data</var></span>, <span>string <var>$format</var> = <span class="php-quote">&quot;&lt;option value='\</span><span class="php-var">$catid</span><span class="php-quote">' \</span><span class="php-var">$selected</span><span class="php-quote">&gt;\</span><span class="php-var">$spacer</span><span class="php-quote">\</span><span class="php-var">$name</span><span class="php-quote">&lt;/option&gt;&quot;</span></span>, <span>integer <var>$id</var> = <span class="php-num">0</span></span>, <span>string <var>$nbsp</var> = <span class="php-quote">'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'</span></span>, <span>array <var>$icon</var> = <span class="php-keyword1">array</span>( <span class="php-quote">'&amp;nbsp;&amp;nbsp;'</span>, <span class="php-quote">'&amp;nbsp;&amp;nbsp;'</span>, <span class="php-quote">'&amp;nbsp;&amp;nbsp;'</span> ) </span> )</code>

			<div class="description short">
				<p>封装Tree类，快速获取有层级的分类树</p>

<pre><span class="php-var">$format</span> = <span class="php-quote">&quot;&lt;option value='\</span><span class="php-var">$catid</span><span class="php-quote">' \</span><span class="php-var">$selected</span><span class="php-quote">&gt;\</span><span class="php-var">$spacer</span><span class="php-quote">\</span><span class="php-var">$name</span><span class="php-quote">&lt;/option&gt;&quot;</span>;
 <span class="php-var">$data</span> = Ibos:app()-&gt;setting-&gt;get(<span class="php-quote">'cache/positioncategory'</span>);
 <span class="php-var">$trees</span> = String::getTree(<span class="php-var">$data</span>,<span class="php-var">$format</span>);</pre>
			</div>

			<div class="description detailed hidden">
				<p>封装Tree类，快速获取有层级的分类树</p>

<pre><span class="php-var">$format</span> = <span class="php-quote">&quot;&lt;option value='\</span><span class="php-var">$catid</span><span class="php-quote">' \</span><span class="php-var">$selected</span><span class="php-quote">&gt;\</span><span class="php-var">$spacer</span><span class="php-quote">\</span><span class="php-var">$name</span><span class="php-quote">&lt;/option&gt;&quot;</span>;
 <span class="php-var">$data</span> = Ibos:app()-&gt;setting-&gt;get(<span class="php-quote">'cache/positioncategory'</span>);
 <span class="php-var">$trees</span> = String::getTree(<span class="php-var">$data</span>,<span class="php-var">$format</span>);</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$data</var></dt>
						<dd>树数据</dd>
						<dt><var>$format</var></dt>
						<dd>生成的格式字符串</dd>
						<dt><var>$id</var></dt>
						<dd>被选中的ID，比如在做树型下拉框的时候需要用到</dd>
						<dt><var>$nbsp</var></dt>
						<dd>间隔，取决于$spacer放在格式字符串的那里</dd>
						<dt><var>$icon</var></dt>
						<dd>修饰符号，可以换成图片</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getId" id="_getId">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getId">#</a>
			<code>getId( <span>mixed <var>$ids</var></span>, <span>boolean <var>$index</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>获取分与不分前缀的id</p>
			</div>

			<div class="description detailed hidden">
				<p>获取分与不分前缀的id</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ids</var></dt>
						<dd></dd>
						<dt><var>$index</var></dt>
						<dd>按前缀索引</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getUid" id="_getUid">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUid">#</a>
			<code>getUid( <span>mixed <var>$ids</var></span> )</code>

			<div class="description short">
				<p>获取有前缀的id字符串所包含的uid数组</p>
			</div>

			<div class="description detailed hidden">
				<p>获取有前缀的id字符串所包含的uid数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ids</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="wrapId" id="_wrapId">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_wrapId">#</a>
			<code>wrapId( <span>array <var>$ids</var></span>, <span>string <var>$identifier</var> = <span class="php-quote">'u'</span></span>, <span>string <var>$glue</var> = <span class="php-quote">','</span> </span> )</code>

			<div class="description short">
				<p>封装id加上前缀</p>

<pre><span class="php-var">$id</span> = <span class="php-keyword1">array</span>(<span class="php-num">23</span>,<span class="php-num">24</span>,<span class="php-num">25</span>,<span class="php-num">26</span>);
<span class="php-keyword2">print_r</span>(String::wrapId(<span class="php-var">$id</span>));
<span class="php-keyword1">return</span> <span class="php-quote">'u_23,u_24,u_25,u_26'</span>;</pre>
			</div>

			<div class="description detailed hidden">
				<p>封装id加上前缀</p>

<pre><span class="php-var">$id</span> = <span class="php-keyword1">array</span>(<span class="php-num">23</span>,<span class="php-num">24</span>,<span class="php-num">25</span>,<span class="php-num">26</span>);
<span class="php-keyword2">print_r</span>(String::wrapId(<span class="php-var">$id</span>));
<span class="php-keyword1">return</span> <span class="php-quote">'u_23,u_24,u_25,u_26'</span>;</pre>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ids</var></dt>
						<dd>id数组\</dd>
						<dt><var>$identifier</var></dt>
						<dd>前缀</dd>
						<dt><var>$glue</var></dt>
						<dd>分隔符</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getUidByIdentifier" id="_getUidByIdentifier">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getUidByIdentifier">#</a>
			<code>getUidByIdentifier( <span>string <var>$identifier</var></span>, <span>string <var>$str</var></span> )</code>

			<div class="description short">
				<p>根据id标识符查找所包含的uid</p>
			</div>

			<div class="description detailed hidden">
				<p>根据id标识符查找所包含的uid</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$identifier</var></dt>
						<dd>标识符,eg:u,d,p</dd>
						<dt><var>$str</var></dt>
						<dd>完整id字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>返回uid组成的数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="iIntval" id="_iIntval">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_iIntval">#</a>
			<code>iIntval( <span>integer <var>$int</var></span>, <span>boolean <var>$allowArray</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>封装Intval函数，加上数组支持</p>
			</div>

			<div class="description detailed hidden">
				<p>封装Intval函数，加上数组支持</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$int</var></dt>
						<dd></dd>
						<dt><var>$allowArray</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFileExt" id="_getFileExt">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFileExt">#</a>
			<code>getFileExt( <span> <var>$fileName</var></span> )</code>

			<div class="description short">
				<p>获取文件扩展名</p>
			</div>

			<div class="description detailed hidden">
				<p>获取文件扩展名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd>文件名</dd>
					</dl></div>



					<h4>Since</h4>
					<div class="list">
							IBOS1.0<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="pregHtml" id="_pregHtml">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_pregHtml">#</a>
			<code>pregHtml( <span> <var>$html</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				<p>正则替换和过滤内容</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$html</var></dt>
						<dd></dd>
					</dl></div>



					<h4>Author</h4>
					<div class="list">
							jason<br>
					</div>


			</div>
			</div></td>
		</tr>
		<tr data-order="getStrLength" id="_getStrLength">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getStrLength">#</a>
			<code>getStrLength( <span>string <var>$str</var></span>, <span>boolean <var>$filter</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>获取字符串的长度</p>
			</div>

			<div class="description detailed hidden">
				<p>获取字符串的长度</p>

<p>计算时, 汉字或全角字符占1个长度, 英文字符占0.5个长度</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
						<dt><var>$filter</var></dt>
						<dd>是否过滤html标签</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer<br>字符串的长度
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="filterCleanHtml" id="_filterCleanHtml">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_filterCleanHtml">#</a>
			<code>filterCleanHtml( <span>string <var>$text</var></span> )</code>

			<div class="description short">
				<p>用于过滤标签，输出没有html的干净的文本</p>
			</div>

			<div class="description detailed hidden">
				<p>用于过滤标签，输出没有html的干净的文本</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$text</var></dt>
						<dd>文本内容</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>处理后内容
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="realStripTags" id="_realStripTags">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_realStripTags">#</a>
			<code>realStripTags( <span>type <var>$str</var></span>, <span>type <var>$allowableTags</var> = <span class="php-quote">&quot;&quot;</span> </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
						<dt><var>$allowableTags</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="filterDangerTag" id="_filterDangerTag">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_filterDangerTag">#</a>
			<code>filterDangerTag( <span>string <var>$text</var></span>, <span>string <var>$type</var> = <span class="php-quote">'html'</span> </span> )</code>

			<div class="description short">
				<p>用于过滤不安全的html标签，输出安全的html</p>
			</div>

			<div class="description detailed hidden">
				<p>用于过滤不安全的html标签，输出安全的html</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$text</var></dt>
						<dd>待过滤的字符串</dd>
						<dt><var>$type</var></dt>
						<dd>保留的标签格式</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>处理后内容
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="filterStr" id="_filterStr">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_filterStr">#</a>
			<code>filterStr( <span>string <var>$string</var></span>, <span>string <var>$delimiter</var> = <span class="php-quote">','</span></span>, <span>boolean <var>$unique</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>过滤字符串</p>
			</div>

			<div class="description detailed hidden">
				<p>过滤字符串</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>要过滤的字符串</dd>
						<dt><var>$delimiter</var></dt>
						<dd>分割符</dd>
						<dt><var>$unique</var></dt>
						<dd>是否过滤重复值</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>过滤后的字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="parseForApi" id="_parseForApi">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_parseForApi">#</a>
			<code>parseForApi( <span>type <var>$html</var></span> )</code>

			<div class="description short">
				<p>解析成api显示格式</p>
			</div>

			<div class="description detailed hidden">
				<p>解析成api显示格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$html</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="parseWapAtByUname" id="_parseWapAtByUname">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_parseWapAtByUname">#</a>
			<code>parseWapAtByUname( <span>type <var>$name</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="replaceExpression" id="_replaceExpression">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_replaceExpression">#</a>
			<code>replaceExpression( <span>string <var>$html</var></span> )</code>

			<div class="description short">
				<p>表情替换(用于页面显示)</p>
			</div>

			<div class="description detailed hidden">
				<p>表情替换(用于页面显示)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$html</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="parseHtml" id="_parseHtml">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_parseHtml">#</a>
			<code>parseHtml( <span>type <var>$html</var></span> )</code>

			<div class="description short">
				<p>解析数据成网页端显示格式</p>
			</div>

			<div class="description detailed hidden">
				<p>解析数据成网页端显示格式</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$html</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="parseUrl" id="_parseUrl">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_parseUrl">#</a>
			<code>parseUrl( <span>string <var>$url</var></span> )</code>

			<div class="description short">
				<p>格式化微博,替换链接地址</p>
			</div>

			<div class="description detailed hidden">
				<p>格式化微博,替换链接地址</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$url</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="formatFeedContentUrlLength" id="_formatFeedContentUrlLength">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_formatFeedContentUrlLength">#</a>
			<code>formatFeedContentUrlLength( <span>string <var>$match</var></span> )</code>

			<div class="description short">
				<p>格式化微博内容中url内容的长度</p>
			</div>

			<div class="description detailed hidden">
				<p>格式化微博内容中url内容的长度</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$match</var></dt>
						<dd>匹配后的字符串</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>格式化后的字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="replaceUrl" id="_replaceUrl">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_replaceUrl">#</a>
			<code>replaceUrl( <span> <var>$content</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="createGuid" id="_createGuid">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createGuid">#</a>
			<code>createGuid( )</code>

			<div class="description short">
				<p>生成GUID(用户唯一ID)</p>
			</div>

			<div class="description detailed hidden">
				<p>生成GUID(用户唯一ID)</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="joinSelectBoxValue" id="_joinSelectBoxValue">

			<td class="attributes"><code>
				 public static
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_joinSelectBoxValue">#</a>
			<code>joinSelectBoxValue( <span>string <var>$deptid</var></span>, <span>string <var>$positionid</var></span>, <span>string <var>$uid</var></span> )</code>

			<div class="description short">
				<p>组合选人框的值</p>
			</div>

			<div class="description detailed hidden">
				<p>组合选人框的值</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$deptid</var></dt>
						<dd>部门id</dd>
						<dt><var>$positionid</var></dt>
						<dd>岗位Id</dd>
						<dt><var>$uid</var></dt>
						<dd>用户id</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>











</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
